# python中的异常处理
# try except

try:
    f = open('non-exist.txt')
    print('File opened!')
    f.close()
except:
    print('File not exists.')
print('Done')

